package com.circle.interests.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.circle.interests.biz.entity.PrizeInventoryLog;
import com.circle.interests.biz.mapper.PrizeInventoryLogMapper;
import com.circle.interests.biz.service.IPrizeInventoryLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 奖品库存操作记录 服务实现类
 * </p>
 *
 * @author generator
 * @since 2021-12-05
 */
@Slf4j
@Service
@Transactional
public class PrizeInventoryLogServiceImpl extends ServiceImpl<PrizeInventoryLogMapper, PrizeInventoryLog> implements IPrizeInventoryLogService {

    @Override
    public void saveLog(Long inventoryId, Integer operateType, Integer count, String operateUser, String remark) {
        PrizeInventoryLog log = new PrizeInventoryLog();
        log.setInventoryId(inventoryId);
        log.setOperateType(operateType);
        log.setCount(count);
        log.setOperateUser(operateUser);
        log.setRemark(remark);
    }
}
